package com.zx.mes.hyl.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * <p>
 * </p>
 *
 * @author 华云龙
 * @since 2018-12-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_order")
public class Order extends Model<Order> {

    private static final long serialVersionUID = 1L;

    /**
     * 订单表id
     */
    @TableId
    private String orderId;

    /**
     * 订单类型:
     */
    private String orderType;

    /**
     * 城市的id
     */
    private String cityId;

    /**
     * 支付平台id
     */
    private String platformId;

    /**
     * 用户id
     */
    private String userId;

    /***
     * 供应商id
     */
    private String supplierId;

    /**
     * 贷物id
     */
    private String goodsId;

    /**
     * 订单状态:创建,已付,失败
     */
    private String orderStatus;

    /**
     * 描述
     */
    private String remark;

    /**
     * 谁创建
     */
    private String createBy;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 谁修改
     */
    private String updateBy;

    /**
     * 修改时间
     */
    private LocalDateTime updateTime;


    @Override
    protected Serializable pkVal() {
        return this.orderId;
    }

}
